﻿
namespace DevOnServer
{
    public class CStartItem
    {
        public int Place;

        public int ID;

        public byte Sex;

        public int Count;
    }

    public partial class CDatabase
    {
        public void createStartItem(CCharCharacter character, CStartItem item)
        {
            if (m_dbc.query("INSERT INTO items(characterid, place, itemid, count) VALUES('{0}', '{1}', '{2}', '{3}');",
                character.ID, item.Place, item.ID, item.Count)
                && item.Place > 41)
            {
                character.Equipment.Add(item.ID);
            }
        }
    }
}
